import request from '@/utils/request'

// 获取门店
export function getStore(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}

//获取卡类型
export function getCardList(data) {
    return request({
        url: '/Card_config/card_list/-1',
        method: 'post',
        data: data
    })
}

//创建
export function signSave(data) {
    return request({
        url: '/Wx_integral_rules/integral_rules_create',
        method: 'post',
        data: data
    })
}

// 获取方案列表
export function getInfo(data,page) {
    return request({
        url: '/Wx_integral_rules/integral_rules_list/'+(page?page:1),
        method: 'post',
        data: data
    })
}

// 列表方案分页
export function getInfoPage(data) {
    return request({
        url: '/Wx_integral_rules/integral_rules_page',
        method: 'post',
        data: data
    })
}

// 停用
export function signEnable(data) {
    return request({
        url: '/Wx_integral_rules/integral_rules_enable',
        method: 'post',
        data: data
    })
}

// 详情
export function signDetails(data) {
    return request({
        url: '/Wx_integral_rules/integral_rules_info',
        method: 'post',
        data: data
    })
}

// 查看门店
export function rulesStore(data) {
    return request({
        url: '/Wx_integral_rules/integral_rules_store',
        method: 'post',
        data: data
    })
}


// 修改
export function rulesUpdate(data) {
    return request({
        url: '/Wx_integral_rules/integral_rules_update',
        method: 'post',
        data: data
    })
}